package com.qqtech.qquan.community.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.community.dao.CommunityLocalnewsDao;
import com.qqtech.qquan.community.model.*;

@Service
public class CommunityLocalnewsServiceImpl extends BaseServiceImpl<CommunityLocalnews> implements
		CommunityLocalnewsService {
	public static final Logger log = LoggerFactory.getLogger(CommunityLocalnewsServiceImpl.class);

	@Resource
	private CommunityLocalnewsDao communityLocalnewsDao;

	@Override
	protected BaseDao<CommunityLocalnews> getBaseDao() {
		return communityLocalnewsDao;
	}

	@Override
	public CommunityLocalnewsVo handleDetail(Integer id) {
		communityLocalnewsDao.updatePv(id);
		CommunityLocalnewsVo communityLocalnewsVo = communityLocalnewsDao.getById(id);
		return communityLocalnewsVo;
	}

}